package cn.com.surker.base.strength.dao;

import cn.com.surker.base.strength.entity.BaseStrengthOrg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 强度等级关联站点表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-07-09
 */
public interface BaseStrengthOrgDao extends BaseMapper<BaseStrengthOrg> {

    /**
     * 根据标号ID查询强度关联信息
     * @param strengthId
     * @param orgId
     * @return
     */
    BaseStrengthOrg findByStrengthOrOrg(Long strengthId, Long orgId);
    /**
     * 查询公司标号
     * @param erpId
     * @param orgId
     * @return
     */
    BaseStrengthOrg findByErpOrOrg(Long erpId, Long orgId);

    /**
     * 根据合同ID查询标号
     * @param contractErpId
     * @param orgId
     * @return
     */
    List<Map<String, Object>> findByStrengthByContract(Long contractErpId, Long orgId);

}
